#!/usr/bin/python3
"""
图像处理
"""
from PIL import Image, ImageDraw, ImageFont


def draw_English_text(image, x, y, string, font_size=20, color=(0, 0, 0), word_css="en.ttf", direction=None):
    """
    添加英文文字（字体限制英文, 可自行修改中文字体）
    Args:
        image: Image对象
        x: x坐标
        y: y坐标
        string: 字符串
        font_size: 字体大小
        color: 颜色
        word_css: 字体
        direction: 方向

    Returns:
        Image对象
    """
    image = image.convert("RGB")
    font = ImageFont.truetype(word_css, font_size)
    draw = ImageDraw.Draw(image)
    draw.text((x, y), string, font=font, fill=color, direction=None)
    del draw
    return image


if __name__ == '__main__':
    print("Hello World")










